<form action="<?php e_action("categoryModifySubmit"); ?>" method="post"  enctype="multipart/form-data">
    <input type="hidden" name="id" id="id" value="<?php echo $r['id']?>">
    <input type="hidden" name="pid" id="pid" value="<?php echo $r['pid']?>">
    <fieldset>
        <legend>商品分类信息</legend>
        <?php if(!$r['pid']){?>
            <label for="name">主类名称</label>
            <input type="text" name="name" id="name" value="<?php echo $r['name']?>" required="required"><br/>
            <label for="point">首页优先级</label>
            <input type="text" name="point" id="point" placeholder="请输入任意一个数字表示优先级，越大优先级越高" value="<?php echo $r['point']?>" required="required"><br/>
        <?php }else{?>
            <label for="name">子类名称</label>
            <input type="text" name="name" id="name" value="<?php echo $r['name']?>"><br/>
        <?php }?>
        <input type="submit" value="保存">
    </fieldset>
</form>